import request from '../request'

//地址列表
export const addressList = params => request.globalRequest(`aos/client/userAddress/addressList`, 'GET', params)

//添加地址
export const addAddress = params => request.globalRequest(`aos/client/userAddress/addAddress`, 'POST', params)

//删除地址
export const deleteAddress = params => request.globalRequest(`aos/client/userAddress/deleteAddress/${params.params.id}`, 'DELETE', params)

//地址详情
export const patientAddress = params => request.globalRequest(`aos/client/userAddress/patientAddress/${params.params.id}`, 'GET', params)

//修改地址信息
export const updateAddress = params => request.globalRequest(`aos/client/userAddress/updateAddress`, 'PUT', params)


